package com.yequan.drawerlayoutdemo.skin.attrs;

import android.view.View;

/**
 * Created by Administrator on 2017/2/9 0009.
 */

public class SkinAttr {
    private String mResName;
    private SkinAttrType mAttrType;

    public SkinAttr(String resName, SkinAttrType attrType) {
        this.mResName = resName;
        this.mAttrType = attrType;
    }

    public String getResName() {
        return mResName;
    }

    public void setResName(String resName) {
        this.mResName = resName;
    }

    public SkinAttrType getAttrType() {
        return mAttrType;
    }

    public void setAttrType(SkinAttrType attrType) {
        this.mAttrType = attrType;
    }

    public void apply(View view) {
        mAttrType.apply(view, mResName);
    }
}
